<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11-清除标签默认样式</title>
    <style>
        /* 京东模式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .box1 {
            width: 200px;
            height: 200px;
            background-color: skyblue;

            padding: 20px;
        }
        .box2 {
            width: 200px;
            height: 200px;
            background-color: green;
        }
    </style>
</head>
<body>
    <h1>清除标签默认样式</h1>

    <p>一般工作的时候，一开始就清除默认样式，并且开启盒子内减模式【box-sizing: border-box;】</p>
    <div class="box1">尺寸计算</div>
    <div class="box2">200px</div>
    
</body>
</html